<template>
<!--  审核评论-->
  <div>
    <div class="padding15 minMaxWidth600 marginAuto">
      <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
        <el-form-item label="评价的内容">
          
        </el-form-item>
       
        <el-form-item label="审核结果" prop="status">
          <el-select style="width: 100%;" v-model="ruleForm.status" placeholder="请选择">
            <el-option
              v-for="(item,index) in options"
              :key="index"
              :label="item.name"
              :value="item.id">
            </el-option>
          </el-select>
        </el-form-item>
       
        <el-form-item label="审核意见" prop="remark">
          <el-input :disabled="disabled"   type="textarea"
          :rows="2" class="width100" v-model="ruleForm.remark" placeholder="审核意见"></el-input>
        </el-form-item>
  
       
    
        <el-form-item>
          <el-button type="primary" :loading="isLoading" :submitDisbled="submitDisbled" @click="submitForm('ruleForm')">确定</el-button>
          <!-- <el-button @click="goback">返回</el-button> -->
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<script>
//  import {} from '@/assets/api/api'
import {AddEditmixin} from '@/assets/mixins/addEditmixin'


  export default {
    name:'AddEditProduct',
    mixins: [AddEditmixin],
    components:{
     
    },
    data(){
      return{
        options:[{name:'通过',id:1},{name:'拒绝',id:2}],
        goBackPath:'/product/brandList',//返回的路径
          isLoading:false,
        page:this.$route.query.page?this.$route.query.page:1,
        submitDisbled:false,
          infoName:'',//编辑取得名字查重要
        msg1:'新增账号',
          roleName:'',//角色名称
        ruleForm:{
          status:1,
          remark:'',
        
        },
        disabled:false,
        rules: {
        
        },
      }
    },
    created() {
     
        
      },
    methods:{
    
      callbackUrl(url){//图片的上传地址
           console.log(url,'callbackUrl')
      },
     
      submitForm(formName) {
        let that = this;
        that.isLoading = true;
      
        this.$refs[formName].validate((valid) => {
          if (valid) {
        
            that.isLoading = false;
          } else {
            that.isLoading = false;
            return false;
          }
        });
      },
    }
  }
</script>
<style lang="scss" scoped>

</style>
